import React, { Component } from 'react'

export default class MainBanner extends Component {
  // static defaultProps = {
  //   banners: [],
  //   title: "默认标题"
  // }
  constructor(props) {
    super(props)
    
    this.state = {}
  }
  
  render() {
    const { banners, title } = this.props
    
    return (
      <div className='banner'>
        <h3>{ title }</h3>
        <ul>
          {
            banners.map((item) => {
              return <li key={ item.acm }>{ item.title }</li>
            })
          }
        </ul>
      </div>
    )
  }
}
